#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include <unistd.h>
#include <fcntl.h>
#include <error.h>

int main()
{
	if(access("Output.java", F_OK) == -1)
		error(1, 0, "Output.java does not exist!\nRun avlc first");
	char buffer[256];
	memset(buffer, 0, 255);
	sprintf(buffer, "javac Output.java");
	system(buffer);
	memset(buffer, 0, 255);
	sprintf(buffer, "java Output");
	system(buffer);
	return 0;
}
